<!DOCTYPE html>
<html>
<head>
<title>Check that the frame name is correct</title>
</head>
<body>
<div id="console"></div>
<script>
  var log = document.querySelector("#console");
  var result;
  if (window.name == "")
    result = "FAIL: no name";
  else if (window.name != "fancyname")
    result = "FAIL: incorrect frame name: " + window.name;
  else
    result = "PASS";
  log.innerText = result;
  document.title = result;
</script>
</body>
</html>
